package com.silverbox.shopper.mapper;

import java.util.List;

import com.silverbox.shopper.entity.BusinessEncoding;

public interface BusinessEncodingMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(BusinessEncoding record);

	int insertSelective(BusinessEncoding record);

	BusinessEncoding selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(BusinessEncoding record);

	int updateByPrimaryKey(BusinessEncoding record);

	/**
	 * 根据白名单业务编码查询业务状态 0表示不开通，1表示部分开通，2表示全部开通
	 * 
	 * @param code
	 * @return
	 */
	Integer getWhiteBusinessStatus(String code);
	
	/**
	 * 获取白名单配置
	 */
	List<BusinessEncoding> getAllBusinessEncoding();
}